﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Security.Cryptography;
using System.Text;
using ElectronicsMarket.Service.IService;

namespace ElectronicsMarket.Service.ServiceImpl
{
    public class HashPasswordServiceIpml : IHashPasswordService
    {
        public string MD5Hash(string value)
        {
            return Convert.ToBase64String(new MD5CryptoServiceProvider().ComputeHash(new UTF8Encoding().GetBytes(value)));
        }

    }
}